import http from "./http";
import httpself from "./httpself";
export const get = (props) => http.get("/rated/list", props);
export const post = (props) => http.post("/movies/list", props);
// 获取验证码接口
export const getloginApi = (data) => http.post("/register/getCode", data);
// 获取个人信息接口
export const getmineApi = (data) => http.post("/register", data);
//消息页面数据获取
export const getinformation = (props) =>
  httpself.get("/api/home/message", props);
// 发现页数据获取
export const getFind = (props) => httpself.get("/api/home/recommend", props);
//详情页数据请求
export const getdetail = (props) => httpself.get("/api/indexsy/jqxs", props);
//详情页数据请求
export const getdetailmain = (props) => httpself.post("/detail/detail", props);
// 樊登读书最近在学内容部分数据获取
export const getrecentApi = (data) =>
  httpself.get("/api/home/recentlist", data);
// 樊登读书最新上线数据获取
export const getcontentApi = (data) =>
  httpself.get("/api/home/contentlist", data);
// 获取搜索页面联想建议结果数据
export const getsearchsgApi = (data) =>
  httpself.post("/api/home/searchlist", data);
export const getsearchtextgApi = (data) =>
  httpself.post("/api/home/searchtextlist", data);
// 线下活动数据
export const getactivities = (props) => httpself.get("/api/home/xxhd", props);
// 编辑推荐数据获取
export const getRecommend = (props) => httpself.get("/api/indexsy/bjtj", props);
// 热门榜单数据获取
export const getHotList = (props) => httpself.get("/api/indexsy/rmbd", props);
// 本周新书
export const getWeekNewBook = (props) =>
  httpself.get("/api/indexsy/bzxs", props);
// 近期新书
export const getRecentBook = (props) =>
  httpself.get("/api/indexsy/jqxs", props);
// 专属为你推荐
export const getForYou = (props) => httpself.get("/api/indexsy/zswntj", props);
// 首页轮播图
export const getCarousel = (props) => httpself.get("/api/home/lbt", props);
// 当前在更
export const getUpDateList = (props) => httpself.get("/api/home/read", props);
// 编辑推荐
export const getRecommendList = (props) =>
  httpself.get("/api/home/readr", props);
// 今日限免
export const getFreeTodayList = (props) =>
  httpself.get("/api/home/today", props);
// 知名谈话节目主持人
export const getCompere = (props) => httpself.get("/api/home/talk", props);
// 声音剧头部轮播图
export const getHeaderCarousel = (props) =>
  httpself.get("/api/home/soundlbt", props);
// 声音剧每日珍藏卡片轮播图
export const getDailyCollectionCarousel = (props) =>
  httpself.get("/api/home/soundeveryday", props);
// 声音剧好剧推荐
export const getGoodTv = (props) =>
  httpself.get("/api/home/soundrecommend", props);
// 声音剧纵向排列商品
export const getListBottom = (props) =>
  httpself.get("/api/home/soundvertical", props);
// 声音剧横向排列商品
export const getListTop = (props) =>
  httpself.get("/api/home/soundacross", props);
//优选商城数据获取
export const getniceshopping = (props) => httpself.get("/api/home/xxsc", props);
